import QtQuick 1.0
import com.nokia.meego 1.0
import QmlXmppClient 1.0

Window {
    id: main

    onInPortraitChanged: {
        //console.log( "MAIN: inPortrait: " + main.inPortrait )
    }

    property alias loadPage: mainItem.source

    property string chatJid: "" //jid для которого открыто окно чата
    property string chatAvatar: "" //аватар для которого открыто окно чата

    MyTheme { id: mytheme }

    Loader {
        id: mainItem
        anchors.fill: parent
        source: "RosterPage.qml"
        onLoaded: {
            mainItem.item.state = "visible"
        }
    }

    XmppClient {
        id: xmppClient
        onMsgReceived: {
            console.log("==> a message received")
        }
    }

}
